home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000178_news@columbia.edu _Mon Jan 1 20:42:41 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id UAA02054
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 1 Jan 2001 20:42:41 -0500 (EST)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id UAA25455
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 1 Jan 2001 20:42:40 -0500 (EST)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id UAA26414
  10.     for kermit.misc@watsun.cc.columbia.edu; Mon, 1 Jan 2001 20:25:45 -0500 (EST)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: Thomas Dickey <dickey@saltmine.radix.net>
  13. Subject: Re: kermit-95 linux terminal type emulation problem
  14. Date: 2 Jan 2001 01:24:18 GMT
  15. Organization: RadixNet Internet Services
  16. Message-ID: <92rak2$h8b$1@news1.Radix.Net>
  17. To: kermit.misc@columbia.edu
  18.  
  19. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  20. > In article <0gu15tkoe38u4ghd7937do07s14ecpqife@4ax.com>,
  21. > Pim Zandbergen  <P.Zandbergen@rubens.macroscoop.nl> wrote:
  22. > :        :vb=200\E[?5h\E[?5l:ve=\E[?25h\E[?0c:vi=\E[?25l\E[?1c:\
  23. > :        :vs=\E[?25h\E[?8c:\
  24.  
  25. > Not a bug, just a moving target in linux terminal definitions.
  26. > Linux console is not based upon SCO ANSI instead it is derived from
  27. > VT2xx terminals.  For a VT2xx the private sequence 
  28.  
  29. >   CSI ? Pn c
  30.  
  31. > is used for terminal reports.  SCO ANSI uses this private sequence
  32. > for cursor manipulation.  0 - underline, 1 - block, 2 off.  
  33.  
  34. > I wonder what the latest Linux console is using for its Pn values.
  35.  
  36. While at one point the Linux console had some pretentions to being VTxxx based,
  37. that was a few years ago - recent changes have been made apparently in a purely
  38. ad hoc manner (the sequence in question is used to set the cursor shape).
  39. For your amusement -
  40.  
  41. VGA-softcursor.txt, from the 2.2 kernel
  42.  
  43. Software cursor for VGA    by Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
  44. =======================    and Martin Mares <mj@atrey.karlin.mff.cuni.cz>
  45.  
  46.    Linux now has some ability to manipulate cursor appearance. Normally, you
  47. can set the size of hardware cursor (and also work around some ugly bugs in
  48. those miserable Trident cards--see #define TRIDENT_GLITCH in drivers/video/
  49. vgacon.c). You can now play a few new tricks:  you can make your cursor look
  50. like a non-blinking red block, make it inverse background of the character it's
  51. over or to highlight that character and still choose whether the original
  52. hardware cursor should remain visible or not.  There may be other things I have
  53. never thought of.
  54.  
  55.    The cursor appearance is controlled by a "<ESC>[?1;2;3c" escape sequence
  56. where 1, 2 and 3 are parameters described below. If you omit any of them,
  57. they will default to zeroes.
  58.  
  59.    Parameter 1 specifies cursor size (0=default, 1=invisible, 2=underline, ...,
  60. 8=full block) + 16 if you want the software cursor to be applied + 32 if you
  61. want to always change the background color + 64 if you dislike having the
  62. background the same as the foreground.  Highlights are ignored for the last two
  63. flags.
  64.  
  65.    The second parameter selects character attribute bits you want to change
  66. (by simply XORing them with the value of this parameter). On standard VGA,
  67. the high four bits specify background and the low four the foreground. In both
  68. groups, low three bits set color (as in normal color codes used by the console)
  69. and the most significant one turns on highlight (or sometimes blinking--it
  70. depends on the configuration of your VGA).
  71.  
  72.    The third parameter consists of character attribute bits you want to set.
  73. Bit setting takes place before bit toggling, so you can simply clear a bit by 
  74. including it in both the set mask and the toggle mask.
  75.  
  76. Examples:
  77. =========
  78.  
  79. To get normal blinking underline, use: echo -e '\033[?2c'
  80. To get blinking block, use:            echo -e '\033[?6c'
  81. To get red non-blinking block, use:    echo -e '\033[?17;0;64c'
  82.  
  83. -- 
  84. Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
  85. http://dickey.his.com
  86. ftp://dickey.his.com